home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2000-01-30 | 4.0 KB | [ ICI!/Woof]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
1%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
100%
file
MacBinary II, inited, Sun Nov 2 19:00:00 1997, modified Sun Jan 30 03:54:05 2000, creator 'Woof', type 'ICI!', 3545 bytes "Extract URL's from file" , at 0xe59 286 bytes resource
default (weak)
99%
file
data
default
100%
TrID
MacBinary 2
default (weak)
100%
dearkID
deark: macbinary
default
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ ICI!] macFileCreator [ Woof]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 17 45 78 74 72 61 63 | 74 20 55 52 4c 27 73 20 |..Extrac|t URL's | |00000010| 66 72 6f 6d 20 66 69 6c | 65 00 00 00 00 00 00 00 |from fil|e.......| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 49 43 49 21 57 6f 6f | 66 01 00 00 00 00 00 00 |.ICI!Woo|f.......| |00000050| 00 00 00 00 00 0d d9 00 | 00 01 1e b0 82 c4 80 b4 |........|........| |00000060| b9 ac ad 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e7 2b 00 00 |........|.....+..| |00000080| 2f 2a 20 0d 09 53 61 6d | 70 6c 65 20 49 43 49 20 |/* ..Sam|ple ICI | |00000090| 73 63 72 69 70 74 20 66 | 6f 72 20 4e 65 74 46 69 |script f|or NetFi| |000000a0| 6e 64 65 72 2e 0d 09 0d | 09 54 68 69 73 20 73 63 |nder....|.This sc| |000000b0| 72 69 70 74 20 64 65 6d | 6f 6e 73 74 72 61 74 65 |ript dem|onstrate| |000000c0| 73 20 68 6f 77 20 74 6f | 20 63 61 6c 6c 20 6d 6f |s how to| call mo| |000000d0| 64 75 6c 65 73 2c 20 6f | 70 65 6e 2f 63 6c 6f 73 |dules, o|pen/clos| |000000e0| 65 20 66 69 6c 65 73 20 | 66 6f 72 20 72 65 61 64 |e files |for read| |000000f0| 69 6e 67 0d 09 61 6e 64 | 20 77 72 69 74 69 6e 67 |ing..and| writing| |00000100| 20 61 6e 64 20 22 65 78 | 63 65 70 74 69 6f 6e 20 | and "ex|ception | |00000110| 68 61 6e 64 6c 69 6e 67 | 22 2e 0d 09 0d 09 57 68 |handling|".....Wh| |00000120| 61 74 20 74 68 69 73 20 | 73 63 72 69 70 74 20 64 |at this |script d| |00000130| 6f 65 73 3a 0d 09 2d 20 | 50 72 6f 6d 70 74 73 20 |oes:..- |Prompts | |00000140| 74 68 65 20 75 73 65 72 | 20 74 6f 20 73 65 6c 65 |the user| to sele| |00000150| 63 74 20 61 20 66 69 6c | 65 20 74 6f 20 74 72 79 |ct a fil|e to try| |00000160| 20 74 6f 20 65 78 74 72 | 61 63 74 20 55 52 4c 27 | to extr|act URL'| |00000170| 73 20 66 72 6f 6d 2e 0d | 09 2d 20 49 66 20 22 70 |s from..|.- If "p| |00000180| 72 6f 6d 70 74 20 6d 6f | 64 75 6c 65 22 20 6e 6f |rompt mo|dule" no| |00000190| 74 20 61 76 61 69 6c 61 | 62 6c 65 20 69 74 20 77 |t availa|ble it w| |000001a0| 69 6c 6c 20 73 69 6d 70 | 6c 79 20 74 72 79 20 74 |ill simp|ly try t| |000001b0| 6f 20 69 6d 70 6f 72 74 | 20 55 52 4c 27 73 0d 09 |o import| URL's..| |000001c0| 20 20 66 72 6f 6d 20 61 | 20 66 69 6c 65 20 6e 61 | from a| file na| |000001d0| 6d 65 64 20 22 69 6d 70 | 6f 72 74 2e 74 78 74 22 |med "imp|ort.txt"| |000001e0| 20 6c 6f 63 61 74 65 64 | 20 69 6e 20 74 68 65 20 | located| in the | |000001f0| 73 61 6d 65 20 66 6f 6c | 64 65 72 20 61 73 20 74 |same fol|der as t| |00000200| 68 65 20 0d 09 20 20 4e | 65 74 46 69 6e 64 65 72 |he .. N|etFinder| |00000210| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 0d 09 2d | applica|tion...-| |00000220| 20 50 72 6f 63 65 73 73 | 20 65 61 63 68 20 6c 69 | Process| each li| |00000230| 6e 65 20 69 6e 20 74 68 | 65 20 66 69 6c 65 20 61 |ne in th|e file a| |00000240| 6e 64 20 65 78 74 72 61 | 63 74 20 61 6e 79 20 55 |nd extra|ct any U| |00000250| 52 4c 27 73 2e 0d 09 2d | 20 57 72 69 74 65 20 74 |RL's...-| Write t| |00000260| 68 65 20 55 52 4c 27 73 | 20 66 6f 75 6e 64 20 62 |he URL's| found b| |00000270| 61 63 6b 20 74 6f 20 61 | 20 4e 65 74 46 69 6e 64 |ack to a| NetFind| |00000280| 65 72 20 62 6f 6f 6b 6d | 61 72 6b 20 6c 69 73 74 |er bookm|ark list| |00000290| 20 66 69 6c 65 2e 0d 09 | 2d 20 43 68 61 6e 67 65 | file...|- Change| |000002a0| 20 74 68 65 20 6e 65 77 | 6c 79 20 63 72 65 61 74 | the new|ly creat| |000002b0| 65 64 20 62 6f 6f 6b 6d | 61 72 6b 20 6c 69 73 74 |ed bookm|ark list| |000002c0| 20 66 69 6c 65 20 74 6f | 20 6f 6e 65 20 74 68 61 | file to| one tha| |000002d0| 74 20 4e 65 74 46 69 6e | 64 65 72 0d 09 20 20 72 |t NetFin|der.. r| |000002e0| 65 63 6f 67 6e 69 7a 65 | 73 2e 0d 09 2d 20 4f 70 |ecognize|s...- Op| |000002f0| 65 6e 73 20 74 68 65 20 | 6e 65 77 6c 79 20 63 72 |ens the |newly cr| |00000300| 65 61 74 65 64 20 42 6f | 6f 6b 6d 61 72 6b 20 6c |eated Bo|okmark l| |00000310| 69 73 74 20 69 6e 20 4e | 65 74 46 69 6e 64 65 72 |ist in N|etFinder| |00000320| 2e 0d 09 0d 09 0d 09 4e | 4f 54 45 53 3a 0d 09 6f |.......N|OTES:..o| |00000330| 20 46 75 6c 6c 20 49 43 | 49 20 70 72 6f 67 72 61 | Full IC|I progra| |00000340| 6d 6d 69 6e 67 20 73 79 | 6e 74 61 78 20 63 61 6e |mming sy|ntax can| |00000350| 20 62 65 20 6f 62 74 61 | 69 6e 65 64 20 66 72 6f | be obta|ined fro| |00000360| 6d 0d 09 20 20 3c 68 74 | 74 70 3a 2f 2f 77 77 77 |m.. <ht|tp://www| |00000370| 2e 7a 65 74 61 2e 6f 72 | 67 2e 61 75 2f 7e 61 74 |.zeta.or|g.au/~at| |00000380| 72 6e 2f 69 63 69 2f 64 | 6f 63 75 6d 65 6e 74 61 |rn/ici/d|ocumenta| |00000390| 74 69 6f 6e 2e 68 74 6d | 6c 3e 0d 09 0d 09 28 63 |tion.htm|l>....(c| |000003a0| 29 20 43 6f 70 79 72 69 | 67 68 74 20 32 30 30 30 |) Copyri|ght 2000| |000003b0| 20 50 65 74 65 72 20 4c | 69 2e 0d 20 2a 2f 0d 20 | Peter L|i.. */. | |000003c0| 0d 61 75 74 6f 20 69 6e | 70 75 74 46 69 6c 65 6e |.auto in|putFilen| |000003d0| 61 6d 65 20 3d 20 22 69 | 6d 70 6f 72 74 2e 74 78 |ame = "i|mport.tx| |000003e0| 74 22 3b 0d 61 75 74 6f | 20 6f 75 74 70 75 74 46 |t";.auto| outputF| |000003f0| 69 6c 65 6e 61 6d 65 20 | 3d 20 22 69 6d 70 6f 72 |ilename |= "impor| |00000400| 74 65 64 20 55 52 4c 27 | 73 22 3b 0d 0d 64 6f 20 |ted URL'|s";..do | |00000410| 7b 0d 09 2f 2a 20 50 72 | 6f 6d 70 74 20 74 68 65 |{../* Pr|ompt the| |00000420| 20 75 73 65 72 20 66 6f | 72 20 61 20 66 69 6c 65 | user fo|r a file| |00000430| 20 74 6f 20 65 78 74 72 | 61 63 74 20 55 52 4c 27 | to extr|act URL'| |00000440| 73 20 66 72 6f 6d 20 2a | 2f 0d 09 74 72 79 20 7b |s from *|/..try {| |00000450| 0d 09 09 61 75 74 6f 09 | 72 65 70 6c 79 20 3d 20 |...auto.|reply = | |00000460| 5b 73 74 72 75 63 74 5d | 3b 0d 09 09 0d 09 09 49 |[struct]|;......I| |00000470| 6e 74 65 72 66 61 63 65 | 4c 69 62 2e 53 74 61 6e |nterface|Lib.Stan| |00000480| 64 61 72 64 47 65 74 46 | 69 6c 65 28 5b 61 72 72 |dardGetF|ile([arr| |00000490| 61 79 5d 2c 20 72 65 70 | 6c 79 29 3b 0d 09 09 0d |ay], rep|ly);....| |000004a0| 09 09 69 66 20 28 72 65 | 70 6c 79 2e 73 66 47 6f |..if (re|ply.sfGo| |000004b0| 6f 64 20 3d 3d 20 30 29 | 0d 09 09 09 62 72 65 61 |od == 0)|....brea| |000004c0| 6b 3b 09 2f 2a 20 75 73 | 65 72 20 63 61 6e 63 65 |k;./* us|er cance| |000004d0| 6c 6c 65 64 20 2a 2f 0d | 0d 09 09 69 66 20 28 49 |lled */.|...if (I| |000004e0| 6e 74 65 72 66 61 63 65 | 4c 69 62 2e 46 53 70 47 |nterface|Lib.FSpG| |000004f0| 65 74 46 75 6c 6c 50 61 | 74 68 28 72 65 70 6c 79 |etFullPa|th(reply| |00000500| 2e 73 66 46 69 6c 65 2c | 20 26 69 6e 70 75 74 46 |.sfFile,| &inputF| |00000510| 69 6c 65 6e 61 6d 65 29 | 20 21 3d 20 30 29 0d 09 |ilename)| != 0)..| |00000520| 09 09 62 72 65 61 6b 3b | 09 2f 2a 20 73 68 6f 75 |..break;|./* shou| |00000530| 6c 64 20 6e 6f 74 20 67 | 65 74 20 68 65 72 65 20 |ld not g|et here | |00000540| 2a 2f 0d 0d 09 7d 20 6f | 6e 65 72 72 6f 72 20 7b |*/...} o|nerror {| |00000550| 0d 09 09 3b 09 2f 2a 20 | 27 69 63 69 49 6e 74 65 |...;./* |'iciInte| |00000560| 72 66 61 63 65 4c 69 62 | 2e 73 6f 27 20 6d 6f 64 |rfaceLib|.so' mod| |00000570| 75 6c 65 20 6e 6f 74 20 | 61 76 61 69 6c 61 62 6c |ule not |availabl| |00000580| 65 20 2a 2f 0d 09 7d 0d | 0d 09 61 75 74 6f 20 66 |e */..}.|..auto f| |00000590| 69 6c 65 3b 0d 09 61 75 | 74 6f 20 6c 69 6e 65 3b |ile;..au|to line;| |000005a0| 0d 09 61 75 74 6f 20 63 | 6f 6d 70 6f 6e 65 6e 74 |..auto c|omponent| |000005b0| 73 3b 0d 09 61 75 74 6f | 20 6e 66 42 6b 46 69 6c |s;..auto| nfBkFil| |000005c0| 65 3b 0d 0d 09 2f 2a 20 | 74 72 79 20 74 6f 20 6f |e;.../* |try to o| |000005d0| 70 65 6e 20 74 68 65 20 | 66 69 6c 65 73 20 66 6f |pen the |files fo| |000005e0| 72 20 72 65 61 64 69 6e | 67 20 61 6e 64 20 77 72 |r readin|g and wr| |000005f0| 69 74 69 6e 67 2e 20 2a | 2f 0d 09 74 72 79 20 7b |iting. *|/..try {| |00000600| 0d 09 09 66 69 6c 65 20 | 3d 20 66 6f 70 65 6e 28 |...file |= fopen(| |00000610| 69 6e 70 75 74 46 69 6c | 65 6e 61 6d 65 2c 20 22 |inputFil|ename, "| |00000620| 72 22 29 3b 0d 09 09 6e | 66 42 6b 46 69 6c 65 20 |r");...n|fBkFile | |00000630| 3d 20 66 6f 70 65 6e 28 | 6f 75 74 70 75 74 46 69 |= fopen(|outputFi| |00000640| 6c 65 6e 61 6d 65 2c 20 | 22 77 62 22 29 3b 0d 09 |lename, |"wb");..| |00000650| 7d 20 6f 6e 65 72 72 6f | 72 20 7b 0d 09 09 74 72 |} onerro|r {...tr| |00000660| 79 20 7b 0d 09 09 09 69 | 66 20 28 66 69 6c 65 20 |y {....i|f (file | |00000670| 21 3d 20 4e 55 4c 4c 29 | 0d 09 09 09 7b 0d 09 09 |!= NULL)|....{...| |00000680| 09 09 4d 49 43 49 2e 41 | 6c 65 72 74 28 31 2c 20 |..MICI.A|lert(1, | |00000690| 22 49 6d 70 6f 72 74 20 | 66 61 69 6c 65 64 2e 5c |"Import |failed.\| |000006a0| 72 5c 72 50 6c 65 61 73 | 65 20 63 6c 6f 73 65 20 |r\rPleas|e close | |000006b0| 74 68 65 20 62 6f 6f 6b | 6d 61 72 6b 20 77 69 6e |the book|mark win| |000006c0| 64 6f 77 20 d2 22 0d 09 | 09 09 09 09 09 09 20 2b |dow ."..|...... +| |000006d0| 20 6f 75 74 70 75 74 46 | 69 6c 65 6e 61 6d 65 20 | outputF|ilename | |000006e0| 2b 20 22 d3 20 69 6e 20 | 4e 65 74 46 69 6e 64 65 |+ ". in |NetFinde| |000006f0| 72 20 66 69 72 73 74 2e | 22 29 3b 0d 09 09 09 7d |r first.|");....}| |00000700| 0d 09 09 7d 20 6f 6e 65 | 72 72 6f 72 20 7b 0d 09 |...} one|rror {..| |00000710| 09 09 3b 09 2f 2f 20 62 | 75 6d 6d 65 72 20 63 61 |..;.// b|ummer ca| |00000720| 6e 74 20 64 69 73 70 6c | 61 79 20 61 6e 20 61 6c |nt displ|ay an al| |00000730| 65 72 74 2e 2e 2e 20 6a | 75 73 74 20 65 78 69 74 |ert... j|ust exit| |00000740| 2e 0d 09 09 7d 0d 09 09 | 0d 09 09 2f 2a 20 63 6c |....}...|.../* cl| |00000750| 65 61 6e 20 75 70 20 61 | 6e 64 20 65 78 69 74 20 |ean up a|nd exit | |00000760| 2a 2f 0d 09 09 69 66 20 | 28 66 69 6c 65 20 21 3d |*/...if |(file !=| |00000770| 20 4e 55 4c 4c 29 0d 09 | 09 09 63 6c 6f 73 65 28 | NULL)..|..close(| |00000780| 66 69 6c 65 29 3b 0d 09 | 09 69 66 20 28 6e 66 42 |file);..|.if (nfB| |00000790| 6b 46 69 6c 65 20 21 3d | 20 4e 55 4c 4c 29 0d 09 |kFile !=| NULL)..| |000007a0| 09 09 63 6c 6f 73 65 28 | 6e 66 42 6b 46 69 6c 65 |..close(|nfBkFile| |000007b0| 29 3b 0d 09 09 0d 09 09 | 62 72 65 61 6b 3b 0d 09 |);......|break;..| |000007c0| 7d 0d 0d 09 2f 2a 20 77 | 72 69 74 65 20 6f 75 74 |}.../* w|rite out| |000007d0| 20 74 68 65 20 4e 46 20 | 62 6f 6f 6b 6d 61 72 6b | the NF |bookmark| |000007e0| 20 6c 69 73 74 20 68 65 | 61 64 65 72 20 2a 2f 0d | list he|ader */.| |000007f0| 09 70 72 69 6e 74 66 28 | 6e 66 42 6b 46 69 6c 65 |.printf(|nfBkFile| |00000800| 2c 09 22 43 52 45 41 54 | 4f 52 3d 57 6f 6f 66 5c |,."CREAT|OR=Woof\| |00000810| 72 22 0d 09 09 09 09 09 | 09 22 56 45 52 53 49 4f |r"......|."VERSIO| |00000820| 4e 3d 31 5c 72 22 0d 09 | 09 09 09 09 09 22 2d 2d |N=1\r"..|....."--| |00000830| 2d 5c 72 22 0d 09 09 09 | 09 09 09 29 3b 0d 0d 09 |-\r"....|...);...| |00000840| 2f 2a 20 66 6f 72 20 65 | 61 63 68 20 6c 69 6e 65 |/* for e|ach line| |00000850| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 2e 2e 2e 20 | in the |file... | |00000860| 2a 2f 0d 09 77 68 69 6c | 65 20 28 6c 69 6e 65 20 |*/..whil|e (line | |00000870| 3d 20 67 65 74 6c 69 6e | 65 28 66 69 6c 65 29 2c |= getlin|e(file),| |00000880| 20 6c 69 6e 65 20 21 3d | 20 4e 55 4c 4c 29 0d 09 | line !=| NULL)..| |00000890| 7b 0d 09 09 74 72 79 20 | 7b 0d 09 09 09 2f 2a 20 |{...try |{..../* | |000008a0| 74 72 79 20 74 6f 20 70 | 61 72 73 65 20 74 68 65 |try to p|arse the| |000008b0| 20 55 52 4c 20 2a 2f 0d | 09 09 09 64 6f 20 7b 0d | URL */.|...do {.| |000008c0| 09 09 09 09 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 3d |....comp|onents =| |000008d0| 20 55 52 4c 2e 50 61 72 | 73 65 55 52 4c 28 6c 69 | URL.Par|seURL(li| |000008e0| 6e 65 29 3b 0d 09 09 09 | 09 0d 09 09 09 09 2f 2a |ne);....|....../*| |000008f0| 20 69 66 20 61 20 55 52 | 4c 20 69 73 20 73 75 63 | if a UR|L is suc| |00000900| 63 65 73 73 66 75 6c 6c | 79 20 66 6f 75 6e 64 2c |cessfull|y found,| |00000910| 20 61 64 64 20 69 74 20 | 74 6f 20 6f 75 72 20 4e | add it |to our N| |00000920| 46 20 62 6f 6f 6b 6d 61 | 72 6b 20 6c 69 73 74 2e |F bookma|rk list.| |00000930| 20 2a 2f 0d 09 09 09 09 | 69 66 20 28 63 6f 6d 70 | */.....|if (comp| |00000940| 6f 6e 65 6e 74 73 20 21 | 3d 20 4e 55 4c 4c 29 0d |onents !|= NULL).| |00000950| 09 09 09 09 7b 0d 09 09 | 09 09 09 70 72 69 6e 74 |....{...|...print| |00000960| 66 28 6e 66 42 6b 46 69 | 6c 65 2c 20 22 25 73 5c |f(nfBkFi|le, "%s\| |00000970| 74 25 73 5c 74 5c 72 22 | 2c 0d 09 09 09 09 09 09 |t%s\t\r"|,.......| |00000980| 09 09 22 55 52 4c 22 2c | 20 0d 09 09 09 09 09 09 |.."URL",| .......| |00000990| 09 09 22 3c 22 20 2b 20 | 63 6f 6d 70 6f 6e 65 6e |.."<" + |componen| |000009a0| 74 73 2e 70 72 6f 74 6f | 63 6f 6c 20 2b 20 22 3a |ts.proto|col + ":| |000009b0| 2f 2f 22 20 2b 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |//" + co|mponents| |000009c0| 2e 68 6f 73 74 6e 61 6d | 65 20 2b 20 63 6f 6d 70 |.hostnam|e + comp| |000009d0| 6f 6e 65 6e 74 73 2e 70 | 61 74 68 6e 61 6d 65 20 |onents.p|athname | |000009e0| 2b 20 22 3e 22 0d 09 09 | 09 09 09 09 09 09 29 3b |+ ">"...|......);| |000009f0| 09 09 0d 2f 2a 0d 09 09 | 09 09 09 70 72 69 6e 74 |.../*...|...print| |00000a00| 66 28 22 4c 69 6e 65 3a | 20 27 25 73 27 5c 6e 22 |f("Line:| '%s'\n"| |00000a10| 2c 20 6c 69 6e 65 29 3b | 0d 09 09 09 09 09 70 72 |, line);|......pr| |00000a20| 69 6e 74 66 28 22 55 52 | 4c 3a 20 25 73 5c 6e 22 |intf("UR|L: %s\n"| |00000a30| 2c 20 63 6f 6d 70 6f 6e | 65 6e 74 73 2e 75 72 6c |, compon|ents.url| |00000a40| 29 3b 0d 09 09 09 09 09 | 70 72 69 6e 74 66 28 22 |);......|printf("| |00000a50| 50 72 6f 74 6f 63 6f 6c | 3a 20 25 73 5c 6e 22 2c |Protocol|: %s\n",| |00000a60| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 2e 70 72 6f 74 | compone|nts.prot| |00000a70| 6f 63 6f 6c 29 3b 0d 09 | 09 09 09 09 70 72 69 6e |ocol);..|....prin| |00000a80| 74 66 28 22 55 73 65 72 | 6e 61 6d 65 3a 20 25 73 |tf("User|name: %s| |00000a90| 5c 6e 22 2c 20 63 6f 6d | 70 6f 6e 65 6e 74 73 2e |\n", com|ponents.| |00000aa0| 75 73 65 72 6e 61 6d 65 | 29 3b 0d 09 09 09 09 09 |username|);......| |00000ab0| 70 72 69 6e 74 66 28 22 | 50 61 73 73 77 6f 72 64 |printf("|Password| |00000ac0| 3a 20 25 73 5c 6e 22 2c | 20 63 6f 6d 70 6f 6e 65 |: %s\n",| compone| |00000ad0| 6e 74 73 2e 70 61 73 73 | 77 6f 72 64 29 3b 0d 09 |nts.pass|word);..| |00000ae0| 09 09 09 09 70 72 69 6e | 74 66 28 22 48 6f 73 74 |....prin|tf("Host| |00000af0| 6e 61 6d 65 3a 20 25 73 | 5c 6e 22 2c 20 63 6f 6d |name: %s|\n", com| |00000b00| 70 6f 6e 65 6e 74 73 2e | 68 6f 73 74 6e 61 6d 65 |ponents.|hostname| |00000b10| 29 3b 0d 09 09 09 09 09 | 70 72 69 6e 74 66 28 22 |);......|printf("| |00000b20| 50 6f 72 74 20 20 20 20 | 3a 20 25 73 5c 6e 22 2c |Port |: %s\n",| |00000b30| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 2e 70 6f 72 74 | compone|nts.port| |00000b40| 29 3b 0d 09 09 09 09 09 | 70 72 69 6e 74 66 28 22 |);......|printf("| |00000b50| 50 61 74 68 6e 61 6d 65 | 3a 20 25 73 5c 6e 22 2c |Pathname|: %s\n",| |00000b60| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 2e 70 61 74 68 | compone|nts.path| |00000b70| 6e 61 6d 65 29 3b 0d 09 | 09 09 09 09 70 72 69 6e |name);..|....prin| |00000b80| 74 66 28 22 2d 2d 2d 5c | 6e 22 29 3b 0d 2a 2f 0d |tf("---\|n");.*/.| |00000b90| 09 09 09 09 09 2f 2a 20 | 71 75 69 63 6b 2d 6e 2d |...../* |quick-n-| |00000ba0| 64 69 72 74 79 20 74 77 | 65 65 6b 20 74 6f 20 73 |dirty tw|eek to s| |00000bb0| 75 70 70 6f 72 74 20 6d | 75 6c 74 69 20 55 52 4c |upport m|ulti URL| |00000bc0| 27 73 20 6f 6e 20 61 20 | 6c 69 6e 65 20 2a 2f 0d |'s on a |line */.| |00000bd0| 09 09 09 09 09 6c 69 6e | 65 20 3d 20 73 75 62 28 |.....lin|e = sub(| |00000be0| 6c 69 6e 65 2c 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |line, co|mponents| |00000bf0| 2e 70 72 6f 74 6f 63 6f | 6c 20 2b 20 22 3a 2f 2f |.protoco|l + "://| |00000c00| 22 2c 20 22 22 29 3b 0d | 09 09 09 09 7d 0d 09 09 |", "");.|....}...| |00000c10| 09 09 65 6c 73 65 0d 09 | 09 09 09 09 62 72 65 61 |..else..|....brea| |00000c20| 6b 3b 0d 09 09 09 09 0d | 09 09 09 7d 20 77 68 69 |k;......|...} whi| |00000c30| 6c 65 20 28 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 21 |le (comp|onents !| |00000c40| 3d 20 4e 55 4c 4c 29 3b | 0d 09 09 09 0d 09 09 7d |= NULL);|.......}| |00000c50| 20 6f 6e 65 72 72 6f 72 | 20 7b 0d 09 09 09 70 72 | onerror| {....pr| |00000c60| 69 6e 74 66 28 22 27 69 | 63 69 55 52 4c 2e 69 63 |intf("'i|ciURL.ic| |00000c70| 69 27 20 6d 6f 64 75 6c | 65 20 69 73 20 6d 69 73 |i' modul|e is mis| |00000c80| 73 69 6e 67 2e 5c 6e 22 | 29 3b 0d 09 09 09 62 72 |sing.\n"|);....br| |00000c90| 65 61 6b 3b 0d 09 09 7d | 0d 09 7d 0d 0d 09 2f 2a |eak;...}|..}.../*| |00000ca0| 20 63 6c 6f 73 65 20 61 | 6c 6c 20 66 69 6c 65 73 | close a|ll files| |00000cb0| 20 61 6e 64 20 63 6c 65 | 61 6e 20 75 70 2e 20 2a | and cle|an up. *| |00000cc0| 2f 0d 09 63 6c 6f 73 65 | 28 66 69 6c 65 29 3b 0d |/..close|(file);.| |00000cd0| 09 63 6c 6f 73 65 28 6e | 66 42 6b 46 69 6c 65 29 |.close(n|fBkFile)| |00000ce0| 3b 0d 0d 09 2f 2a 20 74 | 72 79 20 74 6f 20 63 68 |;.../* t|ry to ch| |00000cf0| 61 6e 67 65 20 74 68 65 | 20 74 79 70 65 20 61 6e |ange the| type an| |00000d00| 64 20 63 72 65 61 74 6f | 72 20 74 6f 20 74 68 61 |d creato|r to tha| |00000d10| 74 20 6f 66 20 61 6e 20 | 4e 46 20 62 6f 6f 6b 6d |t of an |NF bookm| |00000d20| 61 72 6b 20 6c 69 73 74 | 20 66 69 6c 65 20 2a 2f |ark list| file */| |00000d30| 0d 09 2f 2a 20 54 68 65 | 6e 20 74 65 6c 6c 20 74 |../* The|n tell t| |00000d40| 68 65 20 46 69 6e 64 65 | 72 20 74 6f 20 6f 70 65 |he Finde|r to ope| |00000d50| 6e 20 69 74 2e 2e 2e 20 | 74 68 75 73 20 6f 70 65 |n it... |thus ope| |00000d60| 6e 69 6e 67 20 74 68 65 | 20 66 69 6c 65 20 69 6e |ning the| file in| |00000d70| 20 4e 46 2e 20 2a 2f 0d | 09 74 72 79 20 7b 0d 09 | NF. */.|.try {..| |00000d80| 09 4d 49 43 49 2e 53 65 | 74 46 69 6c 65 54 79 70 |.MICI.Se|tFileTyp| |00000d90| 65 43 72 65 61 74 6f 72 | 28 6f 75 74 70 75 74 46 |eCreator|(outputF| |00000da0| 69 6c 65 6e 61 6d 65 2c | 20 22 42 6f 6f 6b 22 2c |ilename,| "Book",| |00000db0| 20 22 57 6f 6f 66 22 29 | 3b 0d 09 09 4d 49 43 49 | "Woof")|;...MICI| |00000dc0| 2e 4f 70 65 6e 4f 62 6a | 65 63 74 28 6f 75 74 70 |.OpenObj|ect(outp| |00000dd0| 75 74 46 69 6c 65 6e 61 | 6d 65 29 3b 0d 09 7d 20 |utFilena|me);..} | |00000de0| 6f 6e 65 72 72 6f 72 20 | 7b 0d 09 09 70 72 69 6e |onerror |{...prin| |00000df0| 74 66 28 22 27 69 63 69 | 4d 49 43 49 2e 69 63 69 |tf("'ici|MICI.ici| |00000e00| 27 20 6d 6f 64 75 6c 65 | 20 69 73 20 6d 69 73 73 |' module| is miss| |00000e10| 69 6e 67 2e 20 46 61 69 | 6c 65 64 20 74 6f 20 63 |ing. Fai|led to c| |00000e20| 68 61 6e 67 65 20 54 79 | 70 65 2f 43 72 65 61 74 |hange Ty|pe/Creat| |00000e30| 6f 72 20 74 6f 20 4e 46 | 20 42 6f 6f 6b 6d 61 72 |or to NF| Bookmar| |00000e40| 6b 2e 5c 6e 22 29 3b 0d | 09 7d 0d 0d 7d 20 77 68 |k.\n");.|.}..} wh| |00000e50| 69 6c 65 20 28 30 29 3b | 0d 00 00 00 00 00 00 00 |ile (0);|........| |00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000e80| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........| |00000e90| 53 49 4f 4e 3d 31 0d 2d | 2d 2d 0d 41 6c 61 64 64 |SION=1.-|--.Aladd| |00000ea0| 69 6e 09 3c 66 74 70 3a | 2f 2f 66 74 70 2e 61 6c |in.<ftp:|//ftp.al| |00000eb0| 17 45 78 74 72 61 63 74 | 20 55 52 4c 27 73 20 66 |.Extract| URL's f| |00000ec0| 72 6f 6d 20 66 69 6c 65 | 02 00 00 00 62 7a 79 20 |rom file|....bzy | |00000ed0| 00 00 62 7a 79 20 4d 41 | 43 53 01 00 ff ff ff ff |..bzy MA|CS......| |00000ee0| 00 00 00 00 00 00 00 00 | 00 00 80 00 00 00 00 00 |........|........| |00000ef0| 00 00 4f 3a fd b0 00 00 | 0d d9 00 00 01 1e 2f 3e |..O:....|....../>| |00000f00| 09 31 0d 41 6c 74 2e 53 | 6f 75 72 63 65 73 2e 4d |.1.Alt.S|ources.M| |00000f10| 61 63 09 3c 66 74 70 3a | 2f 2f 66 74 70 62 69 6f |ac.<ftp:|//ftpbio| |00000f20| 2e 62 67 73 75 2e 65 64 | 75 3e 09 31 0d 41 4d 55 |.bgsu.ed|u>.1.AMU| |00000f30| 47 09 3c 66 74 70 3a 2f | 2f 66 74 70 2e 61 6d 75 |G.<ftp:/|/ftp.amu| |00000f40| 67 2e 6f 72 67 2f 70 75 | 62 2f 3e 09 31 0d 41 4f |g.org/pu|b/>.1.AO| |00000f50| 43 45 09 3c 66 74 70 3a | 2f 2f 66 74 70 2e 61 6e |CE.<ftp:|//ftp.an| |00000f60| 64 72 65 77 2e 63 6d 75 | 2e 65 64 75 2f 70 75 62 |drew.cmu|.edu/pub| |00000f70| 2f 61 6f 63 65 2f 3e 09 | 31 0d 41 4f 4c 09 3c 66 |/aoce/>.|1.AOL.<f| |00000f80| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........| |00000f90| 09 e5 a5 94 5b ce 00 00 | 00 1c 00 1e ff ff 00 00 |....[...|........| |00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+